
import java.util.HashSet;
import java.util.Set;

public class TCryptoFile 
{
    private Long id;
    private TFile file;
    private Set archive_crypto_files = new HashSet();
    private String algorithm;  
    private Long size;
    private String mode;
//------------------------------------------------------------------------------
    TCryptoFile(){}
    public TCryptoFile(String crypto_algorithm, Long crypto_file_size, String mode, TFile file)
    {
        this.algorithm = crypto_algorithm;
        this.size = crypto_file_size;
        this.mode = mode;
        this.file = file;
    }
    public void addArchiveCryptoFile(TArchiveCryptoFile archive_crypto_file) 
    {
        archive_crypto_file.setcrypto_file(this);
        archive_crypto_files.add(archive_crypto_file);
    }
    public Long getId() 
    {
        return id;
    }
    public void setId(Long id) 
    {
        this.id = id;
    }
    public String getmode()
    {
        return mode;
    }
    public void setmode(String mode)
    {
        this.mode = mode;
    }
    public TFile getfile() 
    {
        return file;
    }
    public void setfile(TFile file) 
    {
        this.file = file;
    }
    public String getalgorithm() 
    {
        return algorithm;
    }
    public void setalgorithm(String crypto_algorithm) 
    {
        this.algorithm = crypto_algorithm;
    } 
    public Long getsize()
    {
        return size;
    }
    public void setsize(Long crypto_file_size)
    {
        this.size = crypto_file_size;
    }
    public Set getarchive_crypto_files()
    {
        return archive_crypto_files;
    }
    public void setarchive_crypto_files(Set archive_crypto_files)
    {
        this.archive_crypto_files = archive_crypto_files;
    }   
}
